<?php
/* SVN FILE: $Id: edit.ctp 11 2009-09-12 23:39:35Z kenreily@gmail.com $ */
/**
 * Short description for file.
 *
 * Long description for file
 *
 * PHP versions 4 and 5
 *
 * Recenseo: Online submission and reviewing for education
 * Copyright 2008-2009, Ken Reily
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * $Date: 2009-09-12 23:39:35 +0000 (Sat, 12 Sep 2009) $
 * $Revision: 11 $
 * $Author: kenreily@gmail.com $
 * $HeadURL: http://recenseo.googlecode.com/svn/trunk/app/views/assessment_quality_attributes/edit.ctp $
 */
  if (count($asmt_qual_attr) > 0)
  {
?> 
<h2><?=$asmt_qual_attr[0]['q']['name'] ?> for Submission #<?=$asmt_qual_attr[0]['a']['submission_id'] ?></h2>

<?php
    echo $form->create('AssessmentQualityAttribute',array('action' => 'edit'));
    
    echo $form->input('id',array('type' => 'hidden'));
  
    echo $form->input('likert_result_id',
                      array('options' => $likert_results,
                            'label' => $asmt_qual_attr[0]['q']['description'],
                            'empty' => '(Select Response)',
                            'after' => '<p><small>(Indicate your level of agreement with the statement)</small></p>'));
                            
    echo $form->input('comments',
                      array('label' => 'Comments',
                            'after' => '<p><small>(Give the submitter constructive feedback on this quality of their work)</small></p>'));
    
    echo $form->end('Save');
  }
  else
  {
?>
<p>Item not found.</p>
<?php
  }
?>